//Mode definition
#define IDLE      0
#define JIAOYAN   1
#define CESHI     2

//Machine_State definition
#define POWEROFF  0
#define POWERON   1

//Result
#define BLANK       0
#define CHAOBIAO    1
#define ZHENGCHANG  2
#define YOULIANG    3

//Battery Voltage
#define HIGH        1
#define NORMAL      2
#define LOW         3

//for flash functions
#define U8  unsigned char
#define U16  unsigned int
#define Flash_Store_Addr	0x1000